<template>
  <div>
      我是测试画面2
      <el-button @click="bt">测试</el-button>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import {login} from '@/http/api'
//import {login} from '@h/api'

export default defineComponent({
  name: 'APP',
  components: {

  },setup(){

    const  bt = () => {
      login({name:'莫维春'}).then(res => {
        console.log(res);
      });
    }
    return {
      bt
    }
  }
})
</script>